import request from '@/utils/request'

// 查询党员受牌列表
export function listShoupai(query) {
  return request({
    url: '/system/shoupai/list',
    method: 'get',
    params: query
  })
}

// 查询党员受牌详细
export function getShoupai(num) {
  return request({
    url: '/system/shoupai/' + num,
    method: 'get'
  })
}

// 新增党员受牌
export function addShoupai(data) {
  return request({
    url: '/system/shoupai',
    method: 'post',
    data: data
  })
}

// 修改党员受牌
export function updateShoupai(data) {
  return request({
    url: '/system/shoupai',
    method: 'put',
    data: data
  })
}

// 删除党员受牌
export function delShoupai(num) {
  return request({
    url: '/system/shoupai/' + num,
    method: 'delete'
  })
}
